﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="BugSysSolution.JsAnimate.WebForm1" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script src="../Javascript/jquery-1.8.0.min.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div id="d1" style="width:1px;height:1px;border:1px solid red">
        
    </div>
    </form>
</body>
</html>
<script type="text/javascript">
    $('#d1').animate({ marginLeft: '0px', width: '400px', height: '400px' }, 'slow', 'swing', function () { });

    var person = function () {
        this.name = "a";
        this.age = 0;
        this.say = function () {
            this.age = 1;
            return this.age;
        }
    }

    function test(obj) {
        obj.name = "b";
        obj.say = function () {
            obj.age = 2;
            return obj.age;
        }

        obj = new Object();
        obj.name = "test";
        obj.age = "3";
    }

    var p1 = new person();
    test(p1);
    //alert(p1.name + "--" + p1.say() + "--" + p1.age);  //b--2--0

    var a = [];
    (function x(b) {
        b.push(1);
    })(a);


    var person = function () {
        this.name = "b";
    }
    person.prototype.num = 1;

    var p1 = new person();
    var p2 = new person();
    p1.num = p1.num + 1;
    //alert(p1.num + "---" + p2.num);

    //alert(window.location);

</script>
